/**
 * Project Reactor1
 */


#ifndef _INETADDRESS_H
#define _INETADDRESS_H

class InetAddress {
public: 
    
/**
 * @param ip
 * @param port
 */
void InetAddress(const string & ip, unsigned short port);
    
/**
 * @param addr
 */
void InetAddress(const struct sockaddr_in & addr);
    
void ~InetAddress();
    
string ip();
    
unsigned short port();
    
struct sockaddr_in* getInetAddressPtr();
private: 
    struct sockaddr_in _addr;
};

#endif //_INETADDRESS_H